Scripting reference [NOT YET]
The AppleScript dictionary
Example script